package com.chase.framerwork.common;

/**
 *  java正则表达式常量类
 *  
 * @Author Chase
 * @Date 2013-10-16
 */
public interface ExpConstants {

	// 用户名
	 String USER_NAME = "^\\w{5,12}$";

	// 密码
	 String PASSWORD = "^\\w{5,12}$";

	// qq号
	 String QQ = "[1-9][0-9]{4,10}";

	// E-mail
	 String E_MAIL = "\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*";

	// ip地址
	 String IP = "((?:(?:25[0-5]|2[0-4]\\d|((1\\d{2})|([1-9]?\\d)))\\.){3}(?:25[0-5]|2[0-4]\\d|((1\\d{2})|([1-9]?\\d))))";

	// html 标签
	 String HTML = "<(\\S*?) [^>]*>.*?</\1>|<.*? />";

	// url地址
	 String URL = null;

	// 邮政编码
	 String POST = "[1-9]\\d{5}(?!\\d)";

	// 身份证
	 String ID_CARD = "[\\d]{6}(19|20)*[\\d]{2}((0[1-9])|(11|12))([012][\\d]|(30|31))[\\d]{3}[xX\\d]*";

	// 中文字符
	 String CHINA = "[\u4e00-\u9fa5]{1,}";

	// 图片格式
	 String IMAGE = "(.*)(\\.(jpg|bmp|gif|png|psd|ai|raw|JPG|BMP|GIF|PNG|PSD|AI|RAW))$";

	 // 音乐格式
	 String MUSIC = "(.*)(\\.(mp3|MP3|wav|WAV|au|AU|mp4|MP4|midi|MIDI|wma|WMA|ogg|OGG|ape|APE|flac|FLAC))$";

	// 价格
	 String PRICE = "^[0-9]+(\\.[0-9]+)?$";

	// 电话/手机号码
	 String TEL = "^\\d{3,4}\\-{0,1}(\\d{7,8})$";

}
